import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import NutUI from "@nutui/nutui";
import "@nutui/nutui/dist/style.css";

// nutui组件
import { DatePicker, Picker, Popup } from '@nutui/nutui';
import { Collapse, CollapseItem } from '@nutui/nutui';
import { Table } from '@nutui/nutui';
import { Swipe,Cell,Button } from '@nutui/nutui';
import { Grid, GridItem } from '@nutui/nutui';
import { Dialog, OverLay } from '@nutui/nutui';
import { Divider } from '@nutui/nutui';

import loginLayout from './layouts/LoginLayout.vue';
import userLayout from './layouts/UserLayout.vue';


const app = createApp(App);
app.use(router).use(NutUI).mount('#app');
app.use(DatePicker).use(Picker).use(Popup);
app.use(Collapse).use(CollapseItem);
app.use(Table).use(Button).use(Swipe);
app.use(Grid).use(GridItem).use(Cell);
app.use(Dialog).use(OverLay).use(Divider);

app.component('login-layout', loginLayout);
app.component('user-layout', userLayout);


